package edu.columbia.aicheckers.model;

/**
 * Checker piece class
 * @author Marshall
 *
 */
public class Checker implements Cloneable
{
	Color color;
	int location;
	boolean isKing;
	
	public Checker(Color color, int location)
	{
		this.color = color;
		this.location = location;
	}
	
	
	private Checker(Color color2, int location2, boolean isKing2) {
		this(color2,location2);
		isKing = isKing2;
	}


	public Color getColor()
	{
		return color;
	}
	
	public int getLocation()
	{
		return location;
	}
	
	public boolean isKing()
	{
		return isKing;
	}
	
	public Checker clone()
	{
		Checker c = new Checker(color,location,isKing);
		return c; 
	}
}
